import axios from './interceptor'

// 获取文章列表
const getArticleData = (page: number | string, where: string) => {
  return axios.get(`/article?page=${page}&limite=4&where=${where}`)
}
// 获取文章详情
const getArticleDeatils = (id: string) => {
  return axios.get(`/article/single?id=${id}`)
}
// 获取文章分类
const getArticleClassify = () => {
  return axios.get('/article/label')
}
export { getArticleData, getArticleDeatils, getArticleClassify }
